Group Navigation Bar Tool – Properties

The following table lists and describes properties of the Group Navigation Bar Tool on the Property Sheet and in the tool's script editor. Many of these properties also appear on a tool's (OCXProperties) property sheet. A property's name may vary, depending on where it appears.

Note: If a property or method in the script editor has two forms with the same name, one form exists for legacy support and the other form is current. When possible, use the current form. To select the current form, append .X. to the name of the object to which the property or method applies, and then enter the property or method name. For instance, enter MyObject.X.MyProperty. If a property or method in the script editor has only one form, the X method might or might not apply. The X method column in the table below indicates whether or not a property or method is accessible using the X method.

Browse by letter:     [A]     [B]     [C]     [D]     [E]     [F]     [G]     [H]     [I]     [L]     [O]     [P]     [R]     [S]     [T]     [V]     [W]

Property Sheet Script Editor X Method Description

AutoConfigureLevels

AutoConfigureLevels

Yes

Specifies whether drop-down levels are auto-configured or manually configured. If auto-configure is set to 1 — Yes:

  • The number of drop-downs is automatically configured based on the levels in the navigation hierarchy. The number of drop-downs must be at least one more than the number of levels in the hierarchy (the first drop-down contains the name of the navigation view; the last drop-down contains the list of facilities if the object’s Show Target property is true).
  • The column widths are set to the column label or the contents of the drop-down, whichever is greater.
  • The sort criterion is set to Facility Description.
  • Filtering is disabled.

The default is 1 — Yes. If set to 0 — No, you must manually configure the drop-down menus. For details, see Configuring Drop-Down Levels.

[AutoRestart]

AutoRestart

No

[AutoRestart] specifies whether TheView automatically restarts when a user changes a Facility Navigation Bar object, a Group Grid object, or a Group Navigation Bar object.

[AutoRestart] is typically used to reset the Facility ID of TheView for templated objects. It is not required to reset the contents in a Group Grid object.

When used with a Facility Navigation Bar or a Group Navigation Bar, the [Facility] property of TheView is set to match the facility selected in the drop-down menu.

When used with a Group Grid object, the [Facility] property of TheView changes to match the Group Grid row when the row is clicked.

AutoSizeFont

AutoSizeFont

No

AutoSizeFont specifies whether the object’s font is automatically resized:

Shrink to Fit and Expand to Fit resize the font in Edit mode so that the text fits the boundary of the object. You can use these options to resize the font without using the object’s Font property to explicitly set the font size. In Run mode, the font is dynamically resized in Run mode to accommodate the [DisplayItem] or the tokens specified by the Text property.

  • Shrink to Fit — reduces the font size so the text fits in the object boundary. If the object is resized in Run mode, the font size can never exceed the size specified by the object’s Font property.
  • Expand to Fit — increases the font size so the text fills the object boundary. If the object is resized in Run mode, the font size can never be less than the size specified by the object’s Font property.
  • Best Fit — resizes the font to best fit the text inside the object boundary. If the object is resized in Run mode, the font is also resized. This setting is a combination of Shrink to Fit and Expand to Fit.

Proportional and Proportional Fit resize the font in Run mode based on resizing of TheView.

  • Proportional — resizes the font proportionally to TheView as TheView is resized.
  • Proportional Fit — resizes the font proportionally to the object as the object is resized. This option reduces the font size only when necessary to view all of the text. This is the recommended option when font resizing is required.

Note: An object can be resized in Run mode only if its FlexHorizontal and FlexVertical properties are set to 2 — Expand or 3 — Proportional.

Available AutoSizeFont options are 1 — Shrink to Fit, 2 — Expand to Fit, 3 — Best Fit, 4 — Proportional, and 5 — Proportional Fit. The default is 0 — No (no font resizing).

BackColor

BackColor

Yes

BackColor specifies a background color for the object or grid. Note that if an object’s [AlarmElement] property is set to Background Color and a primary point is assigned to the object, the background color will change in Run mode to reflect the point status.

The default is Automatic, which is the background color of TheView for most objects.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

BorderStyle

BorderStyle

Yes

BorderStyle specifies the border style of the object boundary.

Most tools use one of these sets of options:

  • 0 — ibsNone, 1 — ibsRaised, or 2 — ibsLowered, and the default is 0 — ibsNone
  • 0 — None or 1 — Fixed Single, and the default is 0 — None

The Panel Switch Tool uses these options:

  • 0 — ibsLine, 1 — ibsRaised, 2 — ibsLowered, 3 — ibsTop, and 4 — ibsNone, and the default is 0 — ibsLine.

For the Box, Frame, and Text tools, the BorderStyle property specifies the style of the object’s foreground lines. The options are:

  • 0 — Normal, 1 — 3D, 2 — Sunken, 3 — Raised, and 4 — None
  • The default for the Box Tool is 0 — Normal. The default for the Frame Tool is 1 — 3D. The default for the Text Tool is 4 — None.

    If you use 2 — Sunken or 3 — Raised and the effect is not visible, change the object’s HiliteColor.

    If you use 0 — Normal, 2 — Sunken, or 3 — Raised, you can set the border width using the PenWidth property.

For TheFrame/TheView, the BorderStyle property specifies both the style of the object's border and whether the object can be resized by the user in Run mode. The default is 0 — Thin, which means the border is thin and the size is static. The other possible option is 1 — Resizing, which means the border is thicker and can be resized.

See also Appearance.

Script subtype is integer.

Bottom

Bottom

No

Bottom specifies the distance (in pixels) from the top of TheView’s scroll region to the bottom of the object. You can dynamically change this value in Edit mode if you use the mouse to enlarge or shrink the object. See Sizing and Positioning Objects.

N/A

CaptureMouse

Yes

 

CursorPointer

CursorPointer

No

For TheView, CursorPointer selects the cursor icon that appears when you mouse over objects.

For objects, CursorPointer selects the cursor icon for the instance of the object. The object’s cursor pointer takes precedence over TheView’s cursor pointer.

The default is 0 — Default. For TheView, this is an arrow. For other objects, the icon configured for TheView is used. Other options are:

  • 1 — Arrow
  • 2 — IBeam
  • 3 — Cross
  • 4 — UpArrow
  • 5 — NoDrop
  • 6 — Help
  • 99 — HotSpot
  • 100 — Timer

Script subtype is long.

N/A

DisplayFont

No

DisplayFont returns the current, resized font values for the object. The correct font size is returned only if AutoSizeFont is enabled. For tools other than Text Tool, DDS Editor Button, SetPoint Button, and UIS Command Button DisplayFont is identical to the Font property, except that this is a font interface object instead of a string.

This property is read only.

Enable

Enable

No

Enable specifies whether the user is able to interact with the object. Options are 0 — No and 1 — Yes. The default is 1 — Yes. If set to 0 — No, the object is still visible but its context menu is disabled.

Other options:

  • Completely hide the object in run mode using the Visible property.
  • Display the object but hide its [DisplayItem] using the [DisplayElement] property.

FlexHorizontal

N/A

No

FlexHorizontal specifies whether the object moves or resizes horizontally or is unchanged when TheFrame is resized. Options are:

  • 0 — None (no resizing occurs)
  • 1 — Shift (the object is shifted)
  • 2 — Expand (the object expands or shrinks the same number of pixels as TheFrame)
  • 3 — Proportional (the object expands or shrinks proportionally to TheFrame)

Default is 0 — None.

FlexVertical

N/A

No

FlexVertical specifies whether the object moves or resizes vertically when TheFrame is resized. Options are:

  • 0 — None (no resizing occurs)
  • 1 — Shift (the object is shifted)
  • 2 — Expand (the object expands or shrinks the same number of pixels as TheFrame)
  • 3 — Proportional (the object expands or shrinks proportionally to TheFrame)

Default is 0 — None.

Font

Font

Yes

Font specifies the font for the object.

For TheView, this property specifies the default font for text-based objects.

For other objects, it specifies the font for the instance of the object. The object’s font takes precedence over the font set for TheView.

Click to view the Font dialog box, which you can use to configure the font. The default is MS Shell Dlg (MS Sans Serif, regular, 8 pt). Script subtype is string.

Note: In script, you can set font properties using "-13, Arial" for example.

N/A

ForeColor

No

ForeColor specifies the foreground color for the object. The default is Automatic, which, for most objects is black. Note that if the object’s [AlarmElement] is set to Foreground Color and a primary point has been assigned to the object, the foreground color will change in Run mode to reflect the point status.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

Group

Group

No

Group groups objects into a discrete sequence that can be navigated using the arrow keys.

Options are 0 — No and 1 — Yes. The default is 0 — No.

To use this property:

1. Add objects that use the Group property to a screen.

2. Position them as you like (typically in a spatial configuration that reflects the order in which they were added to the screen).

3. Decide where in the spatial configuration logical groups begin and end.

4. Mark the beginning of a group by setting the Group property to 1 — Yes for the first object in the group.

5. Set Group set to 0 — No for other objects in the group.

The group is made up of all objects that 1) are added sequentially after an object with a Group property set to 1 — Yes and 2) that use a Group property set to 0 — No. A group's arrow navigation sequence reflects the order in which its objects were added to a screen.

This property is not related to the Draw > Group option in the CygNet Studio menu bar. This property might not be suited for use with all tools that include the Group property.

Script subtype is long.

See also Tabstop.

N/A

GroupID

No

Specifies the GroupID of the object group.

GrpNavBarAttributesDescriptions

GrpNavBarAttributesDescriptions

Yes

Identifies the XML that provides descriptions of custom attributes.

GrpNavBarAttributesValues

GrpNavBarAttributesValues

Yes

Identifies the XML that provides the values of custom attributes.

N/A

HasValidTag

No

Returns a Boolean value to confirm a CygNet-aware tool is associated with a valid CygNet tag. This property may not be suited for use with all tools that include the HasValidTag property. See also CygNet-Aware Tools. Script subtype is Boolean.

HelpContextID

HelpContextID

No

HelpContextID specifies the object’s help identifier for context-sensitive help. TheFrame’s WhatsThisHelp must be enabled.

Script subtype is long.

N/A

IsCygNetAware

No

Returns a Boolean value that confirms that an object is a CygNet-aware tool. This property might not be suited for use with all tools that include the IsCygNetAware property. Script subtype is Boolean. See also CygNet-Aware Tools.

N/A

LabelAttribute

Yes

Specifies the label attribute for a specified level as an integer.

  • When this property is set, two parameters are required: an integer that specifies the level for the label attribute and a second integer that identifies the label attribute (for example, FacNavBar.X.LabelAttribute 0, 30).
  • When this property is retrieved, one parameter is required: an integer that specifies the level for the label attribute being retrieved (for example, MsgBox FacNavBar.X.LabelAttribute(0)).

LabelAttributeSource

LabelAttributeSource

Yes

Identifies the source of the label that appears above the drop-down menu.

  • If this property is set to Parent Node (1 — eLABEL_ATTRIBUTE_SOURCE_PARENT), the label is the selection from the previous drop-down menu.
  • If the source is Hierarchy Definition (2 — eLABEL_ATTRIBUTE_SOURCE_HIERDEF), the label is the component description defined when the hierarchy is created.

To show or hide the labels, use the ShowLabels property.

N/A

LabelAttributeString

Yes

Specifies the label attribute of a specified level as a string.

  • When this property is set, two parameters are required: an integer that specifies the level for the label attribute, and a string that identifies the label attribute (for example, FacNavBar.X.LabelAttributeString 0, "facility_category").
  • When this property is retrieved, one parameter is required: an integer that specifies the level for the label attribute being retrieved (for example, MsgBox FacNavBar.X.LabelAttributeString(0)).

N/A

LabelText

Yes

Specifies the label text for a specified level.

  • When this property is set, two parameters are required: an integer that specifies the level for the label text and a string that is the label text (for example, FacNavBar.X.LabelText 0, "Facility Category").
  • When this property is retrieved, one parameter is required: an integer that specifies the level for the label text being retrieved (for example, MsgBox FacNavBar.X.LabelText(0)).

N/A

LabelType

Yes

Specifies the label type for a specified level. The property can be 1 — Attribute or 2 — Text.

  • When this property is set, two parameters are required: an integer that specifies the level for the label and an integer that specifies the label type (for example, FacNavBar.X.LabelType 0, 1).
  • When this property is retrieved, one parameter is required: an integer that specifies the level for the label type (for example, MsgBox FacNavBar.X.LabelType(0)).

Layer

LayerID

No

Layer identifies the layer on which the object resides. Script subtype is Boolean.

Left

Left

No

Left specifies the distance (in pixels) from the left edge of TheView’s scroll region to the left edge of the object. See Sizing and Positioning Objects.

Levels

Levels

Yes

Specifies the total number of drop-down levels in the tool. The default is 3.

(ObjectCode)

Code

No

(ObjectCode) specifies a unique identifier of the object. You can enter up to 39 characters. Valid characters are A-Z, 0-9, and underscore (_). Spaces are not allowed. The default is the object name and the numeric instance. Script subtype is string.

(OCXProperties)

N/A

No

Displays the OCXProperty dialog box unique to the object.

PersistName

 

PersistName

Yes

Specifies the name used to store the Group Navigation Bar object’s current state (navigation view and current selection) in the registry. All Group Navigation Bars that use this name will be set to the last recorded current state.

Note: This property can be used to synchronize Group Navigation Bars from screen to screen. This only works when screens are closed and reopened (unless you add a Refresh button to TheView to refresh the screen).

RestrictLeavesToTarget

RestrictLeavesToTarget

Yes

Specifies whether or not leaf nodes can be targeted if parent nodes are present in a combo box.

Right

Right

No

Right specifies the distance (in pixels) from the left edge of TheView’s scroll region to the right edge of the object. See Sizing and Positioning Objects.

RootNode

RootNode

No

Describes the navigation hierarchy root node. You can define the RootNode using the General page on the Choose Navigation Root Node dialog box. To display this page, click in the OCX Properties dialog box.

N/A

RotateAngle

No

Causes the object to rotate clockwise the specified number of degrees. You can rotate an object directly by using the Rotate option on the Draw menu. For details, see Rotating an Object.

N/A

RootNodeRules

Yes

Specifies the group root node rule identifier XML.

N/A

Rules

Yes

Specifies the rules criteria XML for a specified level. This property is configured using the Filter dialog box in the OCX Properties.

ShowLabels

ShowLabels

Yes

Specifies whether labels appear above the drop-down menus. Default is 1 — Yes.

ShowTargetLevel

ShowTargetLevel

Yes

If Levels is selected, the last drop-down menu in the Facility or Group Navigation Bar contains a list of facilities or leaf nodes based on the last level. Otherwise, the last drop-down shows the last level in the hierarchy.

SiteService

SiteService

Yes

[SiteService] identifies the CVS, Facility Service, or Group Service for the settings. The format for the value is Site.Service.

If this field is blank, the Site.Service specified for TheView is used. If Site.Service is defined for both TheView and the object, the value specified for the object is used.

N/A

Sort

Yes

Defines the sort criteria for the specified level.

Tabstop

TabStop

No

Tabstop specifies whether the focus stops on the object when you use the Tab key to navigate between objects (in other words, enables the object as a tab stop). Options are 0 — No and 1 — Yes. Default is 1 — Yes.

Script subtype is long.

See also Group and Tab Order.

Note: To set the tab order, use the Objects option on the Layout menu.

Tag

Tag

No

Tag is an extra field for application-specific purposes. Does not specify a CygNet point. Default is blank. Script subtype is string.

N/A

TargetLevel

Yes

Returns the number of the target level of the filter hierarchy.

TargetPosition

TargetPosition

Yes

Specifies the target position.

N/A

ToolTipText

No

TooltipText identifies text that is displayed when the mouse hovers over the object in Run mode. For some objects, tooltip text can be dynamic, static, or a combination. You build dynamic text with tokens that can represent point configuration, facility, and CVS point record properties. You can also specify data formatting. Click to view the Edit Tooltip Text dialog box you use to configure the text.

For information about building dynamic text using tokens, see Using Text Tokens.

Script subtype is string.

Note: Although this property is listed on the Property Sheet and in the Script Editor for many tools, it is not supported by all. For example, the Facility Navigation Bar, the Group Grid, and the Group Navigation Bar do not support this property.

N/A

ToolType

No

Returns a CygNet-defined string value that describes the object type. This value appears in the Status Bar when you hover over a default control in its tool palette. You can also display the value using a script. This property is read only. See also Rule-Based Substitution.

Script subtype is string.

Top

Top

No

Top specifies the distance (in pixels) from the top of TheView’s scroll region to the top of the object. See Sizing and Positioning Objects.

Visible

Visible

No

Visible secifies whether the object is visible in Run mode. Options are 0 — No or 1 — Yes. Default is 1 — Yes.

Note: Objects are always visible in Edit mode, regardless of how this property value is set.

You can also:

N/A

Width

Yes

Specifies the width of the combo box at the specified filter level.

  • When this property is set, two parameters are required: an integer that specifies the level for the width setting and an integer that represents the width (for example, FacNavBar.X.Width 0, 100).
  • When this property is retrieved, one parameter is required: an integer that identifies the level for the width being retrieved (for example, MsgBox FacNavBar.X.Width(0)).

N/A

WidthType

Yes

Specifies the width type of a specified level. Options are 1 — Variable or 2 — Fixed.

  • When this property is set, two parameters are required: an integer that specifies the level for the width type and an integer that identifies the width type (for example, FacNavBar.X.WidthType 0, 1).
  • When this property is retrieved, one parameter is required: an integer that specifies the level for the width type being retrieved (for example, MsgBox FacNavBar.X.WidthType(0)).

Back to top